package org.batatasframework.support.searchable.result;

import java.util.List;

import org.batatasframework.support.database.spi.ResultWritable;


public class StatisticsResultRow extends SearchResultRow{

	private final Object value;
	public StatisticsResultRow(List<StatisticsResultHead> heads, Object value) {
		super(heads);
		this.value = value;
	}
	
	@Override
	public void writeTo(ResultWritable resultWriter) throws Exception {
		resultWriter.newLine(value);
		//resultWriter.append(value);
		for(ResultCell cell : cells){
			cell.writeTo(resultWriter);
		}
	}
}
